home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Games
/
ADoom
/
ADoom_src
/
test_fixed.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1998-01-26
|
352 b
|
17 lines
#include <stdio.h>
#include "m_fixed.h"
#include "m_swap.h"
int main (void)
{
fixed_t a, b, c;
a = 0x7fff0000;
b = 0xffffffff;
c = FixedDiv (a, b);
printf ("%08x\n", c);
printf ("%08x %08x %08x %08x\n", (int)SWAPSHORT(0x0102), (int)SWAPSHORT(0xff01),
(int)SWAPSHORT(0x7fff), (int)SWAPSHORT(0x8090));
}